package com.kingzoder.food.controller;

import com.kingzoder.food.common.base.BaseController;
import com.kingzoder.food.common.base.ResultVO;
import com.kingzoder.food.common.base.page.PageResultVO;
import com.kingzoder.food.model.dto.user.AddUserDTO;
import com.kingzoder.food.model.dto.user.EditUserDTO;
import com.kingzoder.food.model.dto.user.SearchUserDTO;
import com.kingzoder.food.model.vo.user.UserVO;
import com.kingzoder.food.service.UserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ZoderKing
 */
@Tag(name = "APP-用户接口")
@RestController
@RequestMapping("/api/users")
@RequiredArgsConstructor
public class UserController implements BaseController<UserVO, UserVO, SearchUserDTO, AddUserDTO, EditUserDTO> {

    private final UserService userService;

    @Operation(summary = "分页查询")
    @Override
    public PageResultVO<List<UserVO>> queryPage(SearchUserDTO queryDTO) {
        return null;
    }

    @Operation(summary = "查询单个")
    @Override
    public ResultVO<UserVO> queryOne(Long aLong) {
        return null;
    }

    @Operation(summary = "添加用户")
    @Override
    public ResultVO<Boolean> add(AddUserDTO addDTO) {
        return null;
    }

    @Operation(summary = "修改用户")
    @Override
    public ResultVO<Boolean> edit(EditUserDTO updateDTO) {
        return null;
    }

    @Operation(summary = "删除用户")
    @Override
    public ResultVO<Boolean> remove(Long aLong) {
        return null;
    }
}
